package com.management.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙世超
 * @since 2022-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dm_defect_record")
public class DefectRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "defect_id",type = IdType.AUTO)
    private Integer defectId;

    private String projectName;

    private Integer parentDefectId;

    private String defectName;

    private String defectDesc;

    private String assignee;

    /**
     * 缺陷分类TYPE_CODE类型的代码
     */
    private String defectType;

    /**
     * 缺陷严重程度表SEVERITY_CODE类型的代码
     */
    private String defectSevsrity;

    /**
     * 缺陷优先级表PRIORITY_CODE类型的代码
     */
    private String defectPriority;

    private LocalDate planStartTime;

    private LocalDate planEndTime;

    private LocalDate actStartTime;

    private LocalDate actEndTime;

    private BigDecimal planWorkHours;

    private BigDecimal actWorkHours;

    private LocalDateTime assignedTime;

    private String doneCondition;

    private Integer doneRatio;

    /**
     * 缺陷状态表STATE_CODE类型的代码
     */
    private String issueState;

    private String createBy;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String modifyBy;

    @TableField(value = "modify_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    private Integer isdeleted;


}
